#ifndef GATEWAY
#define GATEWAY
#include <stdint.h>
#include <curl/curl.h>
#include <cjson/cJSON.h>
#include <stdio.h>


void sendGetRequest(char* url,size_t (*fn)(void *contents, size_t size, size_t nmemb, void *userp));

void sendPostRequest(char* url,char*parmStr,size_t (*fn)(void *contents, size_t size, size_t nmemb, void *userp));


//文件下载的函数
int downloadRes(char *url,char * savleFilePath);
#endif